package com.chaos.framework.model.dto.page;

import com.chaos.framework.model.constant.Constants;
import com.chaos.framework.model.dto.DTO;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PageQueryDto<T> extends PageQueryData {

    @Valid
    @NotNull(message = "data不能为空")
    private T data;

}
